#ifndef __STDIO_STDIO_H__
#define __STDIO_STDIO_H__

#include <types.h>
#include <dirent/dirent.h>

#define stdin                (0)
#define stdout               (1)
#define stderr               (1)

#define SEEK_SET             (0)
#define SEEK_CUR             (1)
#define SEEK_END             (2)

#define FNEW_OK              (1)
#define FNEW_FAILED          (0)

#define FSEEK_OK             (1)
#define FSEEK_BREAK          (0)

#define REMOVE_OK            (1)
#define REMOVE_FAILED        (0)

#define RENAME_OK            (1)
#define RENAME_FAILED        (0)

/* struktura souboru (FILE) */
typedef struct {
  char filename[12];
  char far *buffer;
  int  c_start;
  int  c_actual;
  int  pos;
  int  abs_pos;
  int  size;

  int  dir_cluster;
  int  dir_pos;
  DirectoryEntry *sfile;
} FILE;

#endif
